


use crate::conf_init::MapResult;

pub fn func_arg_test()->MapResult<()>{
    /*
   let pre_define_col_port = "col([a,b,port])";
   let pre_define_col_value = "literal(80)";
   let my_filter1 = "and(<col_port>,80)";
   let my_filter2 = "set(<col_port>,[d,e,port])";
   let my_filter3 = "set([a,b,c],90)";

   "pre_nth([url],5)";
   "set([new_name],<pre_other>";
   "(a and b) or (port = 80)";
   "event_a -> event_b => event_c[3:6]";
    */

    //let mut pre_define = HashMap::new();
    //let col_port = conf_map_to_logicalplan(pre_define_col_port)?;
    //let col_value = conf_map_to_logicalplan(pre_define_col_value)?;

    //pre_define.insert("col_port".to_string(), col_port);
    //pre_define.insert("col_value".to_string(), col_value);

    //let filter1 = conf_map_to_logicalplan(my_filter1)?;
    //let filter2 = conf_map_to_logicalplan(my_filter2)?;
    //let filter3 = conf_map_to_logicalplan(my_filter3)?;

    //println!("filter1: {:?}", filter1);
    //println!("filter2: {:?}", filter2);
    //println!("filter3: {:?}", filter3);

    //println!("runplan1: {:?}", logicalplan_map_to_runplan(&filter1, &pre_define));
    //println!("runplan2: {:?}", logicalplan_map_to_runplan(&filter2, &pre_define));
    //println!("runplan3: {:?}", logicalplan_map_to_runplan(&filter3, &pre_define));

    return MapResult::Ok(());
}
